package com.product.service;

import com.product.exception.AppException;
import com.product.exception.SelectNotException;
import com.product.pojo.Product;

import java.util.List;

public interface ProductService {
    //查询所有商品列表的业务
    List<Product> findAll() throws SelectNotException, AppException;

    Product findOne(String name)throws SelectNotException, AppException;

    int upDate(Product product) throws SelectNotException, AppException;

    int delete(int id) throws SelectNotException, AppException;

    int add(Product product) throws SelectNotException, AppException;
}
